const rest = require('./futures/rest')
const stream = require('./futures/stream')

module.exports = {
    rest,
    stream,
    error: err => {
        return (typeof err.response.data != 'undefined') ? `${err.response.data.code}: ${err.response.data.msg}` : err
    }
}
